package com.qcit.api

import android.app.Activity
import android.content.Context
import android.text.TextUtils
import androidx.fragment.app.Fragment
import java.security.AccessControlContext

object PathRule {
    fun checkRule(path:String):Boolean{
        if (null == path ||path.startsWith("/")
            || path.lastIndexOf("/")==0
        ){ return false }

        // 截取组名  /order/Order_MainActivity  finalGroup=order
        val finalGroup = path.substring(1, path.indexOf("/", 1)) // finalGroup = order
//        require(!TextUtils.isEmpty(finalGroup)) { "path error" }
        if(!TextUtils.isEmpty(finalGroup)) { return false }
        return true
    }

}